<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="orderSellList.title"/></title>
    <meta name="heading" content="<fmt:message key='orderSellList.heading'/>"/>
     <meta name="menu" content="UserMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editOrderSell"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="orderSellGroup"  defaultsort="2" defaultorder="descending" class="table" requestURI="" id="orderSellList" export="true" pagesize="25">

    <display:column property="id" sortable="true" href="editOrderSell" media="html"
        paramId="id" paramProperty="id" titleKey="orderSell.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="orderSell.id"/>
    <display:column property="orderDate" group="1" sortable="true" titleKey="orderSell.orderDate"/>
    <display:column property="user.fullName" group="2" sortable="true" titleKey="orderSell.user.username"/>
    <display:column property="user.fullName"  sortable="true" titleKey="orderSell.user.fullName"/>
    <display:column property="productName" group="3" sortable="true" titleKey="orderSell.productName"/>
    <display:column property="market" group="4" sortable="true" titleKey="orderSell.market"/>
    <display:column property="client" sortable="true" titleKey="orderSell.client"/>
    <display:column property="idCard" sortable="true" titleKey="orderSell.idCard"/>
   
    <display:column property="money" sortable="true" titleKey="orderSell.money"/>
    
    <display:column property="subTime" sortable="true" titleKey="orderSell.subTime"/>
     <display:column property="remark" sortable="true" titleKey="orderSell.remark"/>
    <display:column property="modifyTime" sortable="true" titleKey="orderSell.modifyTime"/>
    
	<display:column titleKey="orderSell.subSystem" style="width: 16%; padding-left: 15px" media="html">
       <input type="checkbox" disabled="disabled" <c:if test="${orderSellList.subSystem}">checked="checked"</c:if>/>
    </display:column>
    
    <display:setProperty name="paging.banner.item_name"><fmt:message key="orderSellList.orderSells"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="orderSellList.orderSells"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="orderSellList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="orderSellList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="orderSellList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editOrderSell"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("orderSellList");
</script>